package com.ruoyi.creditlife.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 续借记录对象 book_renew_records
 * 
 * @author ddd
 * @date 2025-07-10
 */
public class BookRenewRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 续借ID */
    private Long renewId;

    /** 借阅记录ID */
    @Excel(name = "借阅记录ID")
    private Long borrowId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 续借时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "续借时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date renewTime;

    /** 续借时长 */
    @Excel(name = "续借时长")
    private Long extendDays;

    /** 新应还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新应还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newDueTime;

    /** 续借次数 */
    @Excel(name = "续借次数")
    private Long renewCount;

    public void setRenewId(Long renewId) 
    {
        this.renewId = renewId;
    }

    public Long getRenewId() 
    {
        return renewId;
    }

    public void setBorrowId(Long borrowId) 
    {
        this.borrowId = borrowId;
    }

    public Long getBorrowId() 
    {
        return borrowId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setRenewTime(Date renewTime) 
    {
        this.renewTime = renewTime;
    }

    public Date getRenewTime() 
    {
        return renewTime;
    }

    public void setExtendDays(Long extendDays) 
    {
        this.extendDays = extendDays;
    }

    public Long getExtendDays() 
    {
        return extendDays;
    }

    public void setNewDueTime(Date newDueTime) 
    {
        this.newDueTime = newDueTime;
    }

    public Date getNewDueTime() 
    {
        return newDueTime;
    }

    public void setRenewCount(Long renewCount) 
    {
        this.renewCount = renewCount;
    }

    public Long getRenewCount() 
    {
        return renewCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("renewId", getRenewId())
            .append("borrowId", getBorrowId())
            .append("userId", getUserId())
            .append("renewTime", getRenewTime())
            .append("extendDays", getExtendDays())
            .append("newDueTime", getNewDueTime())
            .append("renewCount", getRenewCount())
            .toString();
    }
}
